package com.tudouji.project.product.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 内部价格对象 innerprice
 * 
 * @author wf
 * @date 2020-12-30
 */
public class Innerprice
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 销售组织id */
    private String orgguid;

    /** 采购方组织id */
    private String purorgguid;

    /** 产品 */
    private String productguid;

    /** 规格 */
    @Excel(name = "物料编码")
    private String spguid;

    @Excel(name = "物料名称")
    private String spName;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 状态 */
    private Long status;

    /** 创建者 */
    private String createdby;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date effectivetime;

    /** 最后更新日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastupdatetime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime;

    private String templateUrl;

    /**
     * 销售组织名称
     *
     */
    private String xname;

    /**
     * 采购组织名称
     *
     */
    private String cname;

    private String productname;

    private String spname;

    private String unit;

    private String nickName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrgguid(String orgguid) 
    {
        this.orgguid = orgguid;
    }

    public String getOrgguid() 
    {
        return orgguid;
    }
    public void setPurorgguid(String purorgguid) 
    {
        this.purorgguid = purorgguid;
    }

    public String getPurorgguid() 
    {
        return purorgguid;
    }
    public void setProductguid(String productguid) 
    {
        this.productguid = productguid;
    }

    public String getProductguid() 
    {
        return productguid;
    }
    public void setSpguid(String spguid) 
    {
        this.spguid = spguid;
    }

    public String getSpguid() 
    {
        return spguid;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setCreatedby(String createdby) 
    {
        this.createdby = createdby;
    }

    public String getCreatedby() 
    {
        return createdby;
    }
    public void setEffectivetime(Date effectivetime) 
    {
        this.effectivetime = effectivetime;
    }

    public Date getEffectivetime() 
    {
        return effectivetime;
    }
    public void setLastupdatetime(Date lastupdatetime) 
    {
        this.lastupdatetime = lastupdatetime;
    }

    public Date getLastupdatetime() 
    {
        return lastupdatetime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getSpName() {
        return spName;
    }

    public void setSpName(String spName) {
        this.spName = spName;
    }

    public String getTemplateUrl() {
        return templateUrl;
    }

    public void setTemplateUrl(String templateUrl) {
        this.templateUrl = templateUrl;
    }

    public String getXname() {
        return xname;
    }

    public void setXname(String xname) {
        this.xname = xname;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public String getSpname() {
        return spname;
    }

    public void setSpname(String spname) {
        this.spname = spname;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orgguid", getOrgguid())
            .append("purorgguid", getPurorgguid())
            .append("productguid", getProductguid())
            .append("spguid", getSpguid())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("createdby", getCreatedby())
            .append("createtime", getCreatetime())
            .append("effectivetime", getEffectivetime())
            .append("lastupdatetime", getLastupdatetime())
            .toString();
    }
}
